<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>获取其他8个对象</title>
</head>
<body>
<%
pageContext.setAttribute("key03", "value0312");
//直接去session容器里去获取key03对应的value
String content=(String)pageContext.getAttribute("key03", pageContext.SESSION_SCOPE);
out.write("范围里内容为："+content+"。");
%>
<%
/*
  步骤1：page  request   session  application

*/
String content01=(String)pageContext.findAttribute("key03");
out.write("范围里的内容为："+content01+"。");
%>
</body>
</html>